<?php

class Form_User extends Zend_Form
{
    public function init()
    {
		$this->setMethod('post');
		$this->addPrefixPath('Lion_Form_Element', '../library/Form/Element/', 'element');	
	   
	    /*$this->addElement('text', 'firstname', array(
            'label'      => 'First Name: *',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
		
		$this->addElement('text', 'lastname', array(
            'label'      => 'Last Name: *',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
		
		$this->addElement('text', 'email ', array(
            'label'      => 'Email Address',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
		
		$this->addElement('text', 'username', array(
            'label'      => 'Username:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
		
		$this->addElement('password', 'password', array(
            'label'      => 'Password:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
		
		$status = new Zend_Form_Element_Select('status');
        $status ->setLabel('Status')
		 			 ->addMultiOptions(array(
						1 => 'Active',
						0 => 'Pending'));
						
		$this->addElement($status);		


        $submit = new Zend_Form_Element_Submit('Save');
        $submit->setAttrib('id', 'useradd');  
		$submit->setAttrib('name', 'useradd');
        $this->addElement($submit);   */
		
		$this->setDecorators( array( array('ViewScript', array('script' => 'index.phtml'))));  
    }
}
